<?php defined('IN_PHPCMS') or exit('No permission resources.'); ?><?php include template('member', 'header'); ?>
<div id="memberArea">
<div class="layui-member-center">
  <?php include template('member', 'left'); ?>
  <div class="layui-member-info">
    <div class="layui-member-content">
      <div class="layui-avatar"><a title="<?php echo L('modify').L('avatar');?>" href="index.php?m=member&c=index&a=account_manage_avatar&t=1"><img src="<?php echo $avatar['90'];?>" onerror="this.src='<?php echo $phpsso_api_url;?>/statics/images/member/nophoto.gif'"></a></div>
      <p class="layui-msg">嗨，<?php if($memberinfo['nickname']) { ?> <?php echo $memberinfo['nickname'];?> <?php } else { ?> <?php echo $memberinfo['username'];?><?php } ?>(<?php echo $memberinfo['email'];?>)，欢迎你的到来！</p>
      <p class="layui-msg"><span>会员组：<em><?php echo $grouplist[$memberinfo['groupid']]['name'];?></em></span></p>
    </div>
	<div class="layui-member-group">
		<table class="layui-table">
			<tr>
				<th width="120">用户名</th>        
				<td><?php echo $memberinfo['username'];?></td>
			</tr>
			<tr>
				<th width="120">用户组</th>        
				<td><?php echo $member_model[$memberinfo['modelid']]['name'];?></td>
			</tr>
			<tr>
				<th width="120">注册邮箱</th>        
				<td><?php echo $memberinfo['email'];?></td>
			</tr>
			<tr>
				<th width="120">注册时间</th>        
				<td><?php echo FORMAT::date($memberinfo['regdate'] ,1);?></td>
			</tr>
			<tr>
				<th width="120">最后登录时间</th>        
				<td><?php echo FORMAT::date($memberinfo['lastdate'] ,1);?></td>
			</tr>
			<tr>
				<th width="120">注册IP</th>        
				<td><?php echo $memberinfo['regip'];?></td>
			</tr>
			<tr>
				<th width="120">最后登录IP</th>        
				<td><?php echo $memberinfo['lastip'];?></td>
			</tr>
			<!-- <tr>
				<th width="120"><?php echo L('mp');?>：</th>        
				<td style="color:#ff6600;"><strong><?php if($memberinfo['mobile']) { ?><?php echo substr($memberinfo['mobile'],0,3);?>****<?php echo substr($memberinfo['mobile'],-4);?><?php } ?></strong> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" value="更换手机" class="button" onclick="redirect('?m=member&c=index&a=account_change_mobile&t=1')"></td>
			</tr> -->
			<?php $n=1; if(is_array($member_modelinfo)) foreach($member_modelinfo AS $k => $v) { ?>
			<tr>
				<th width="120"><?php echo $k;?>：</th>        
				<td><?php echo $v;?></td>
			</tr>
			<?php $n++;}unset($n); ?>
		</table>
	</div>
  </div>
</div>
<?php include template('member', 'footer'); ?>